package com.yd.mvc.baseController.util;


public class JsonResult {
    //状态：0：失败 1：成功
    private int status;
    //状态为1时的返回数据
    private Object data;
    //状态为0时的失败提示信息
    private String message="";
    //用于标志异常类型
    private String type="";

    public JsonResult(){}

    public JsonResult(int status, Object data, String message) {
        this.status = status;
        this.data = data;
        this.message = message;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
